package com.yuchengtech.simpleServer.jdv;

import java.util.HashMap;

public class JdvConfig {
	
	private static final JdvConfig JDV_CONFIG=new JdvConfig();
	private HashMap<String,JdvFile> jdvFileMap;
	
	private JdvConfig()
	{
		jdvFileMap=new HashMap<String, JdvFile>();
	}
	
	public JdvFile getJdvFile(String filePath)
	{
		return jdvFileMap.get(filePath);
	}
	
	public void setJdvFile(JdvFile jdvFile)
	{
		jdvFileMap.put(jdvFile.getFilePath(),jdvFile);
	}
	
	
	public static JdvConfig getSingleJdvConfig()
	{
		return JDV_CONFIG;
	}
}
